// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 

package com.nnee.p_pr.p_activity.p_a;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import com.nnee.p_fk.cls_k;
import com.nnee.p_img.cls_c;
import com.nnee.p_img.cls_d;
import com.nnee.p_l.p_b.cls_a;
import com.nnee.p_pr.p_activity.cls_PRISActivitySetting;
import com.nnee.p_pr.p_atom.cls_g;
import com.nnee.p_pr.p_atom.cls_u;

// Referenced classes of package com.nnee.p_pr.p_activity.a:
//            i, z, y

public class cls_t extends cls_i
{

    public cls_t(Context context, int j, String as[], int ai[])
    {
        c = 0;
        d = null;
        e = null;
        f = null;
        g = null;
        if(context != null)
        {
            c = j;
            d = as;
            e = ai;
            f = context;
            g = LayoutInflater.from(f);
            a = com.nnee.p_img.cls_c.a(f, 56F);
            b = a;
        }
    }

    private void a(z z1, View view)
    {
        if(z1 != null && view != null) goto _L2; else goto _L1
_L1:
        return;
_L2:
        z1.a = 0;
        int j = e.length;
        int l = 0;
        while(l < j) 
        {
            View view1 = view.findViewById(e[l]);
            if(d[l].equals("icon"))
                z1.b = (ImageView)view1;
            else
            if(d[l].equals("title"))
                z1.c = (TextView)view1;
            else
            if(d[l].equals("content"))
                z1.e = (TextView)view1;
            else
            if(d[l].equals("time"))
                z1.d = (TextView)view1;
            l++;
        }
        z1.f = (LinearLayout)view.findViewById(0x7f0d0078);
        if(true) goto _L1; else goto _L3
_L3:
    }

    private void a(z z1, cls_u u1, int j)
    {
        if(z1 != null && u1 != null) goto _L2; else goto _L1
_L1:
        return;
_L2:
        z1.c.setText(u1.U());
        String s;
        if(u1.u())
            z1.c.setTextColor(k.a(f).c(0x7f0800b0));
        else
            z1.c.setTextColor(k.a(f).c(0x7f0800b1));
        if(u1.J())
        {
            String s1 = com.nnee.l.b.a.a(f, u1);
            z1.d.setText(s1);
        }
        z1.e.setText(u1.X());
        z1.f.setVisibility(8);
        s = u1.b(g.g);
        if(s != null && !PRISActivitySetting.i(f))
        {
            z1.b.setImageDrawable(k.a(f).b(0x7f020055));
            z1.f.setVisibility(0);
            if(z1.a > 0)
            {
                com.nnee.p_img.cls_d.a().a(z1.a, 1);
                z1.a = 0;
            }
            z1.a = com.nnee.p_b.p_a.cls_d.f();
            StringBuilder stringbuilder = new StringBuilder();
            z1.b.setTag(stringbuilder);
            com.nnee.p_img.cls_d.a().a(stringbuilder, 2, s, new cls_y(this, z1), a, b, 2, z1.a);
        }
        if(true) goto _L1; else goto _L3
_L3:
    }

    public View getView(int j, View view, ViewGroup viewgroup)
    {
        z z1;
        cls_u u1;
        if(view == null)
        {
            view = g.inflate(c, null);
            z z2 = new cls_z(this);
            a(z2, view);
            view.setTag(z2);
            z1 = z2;
        } else
        {
            z1 = (z)view.getTag();
        }
        u1 = (u)getItem(j);
        if(u1 != null)
            a(z1, u1, j);
        return view;
    }

    private int a;
    private int b;
    private int c;
    private String d[];
    private int e[];
    private Context f;
    private LayoutInflater g;
}
